package Homework;

public class Dolphin extends Pet{
    private String name;

    public Dolphin() {

    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    public Dolphin(String name) {
        this.name = name;
    }

    @Override
    public void eat() {
        super.eat();
        System.out.println("海豚在吃鱼");
    }
    public void runningCircle(){
        System.out.println("海豚在转圈");
    }
}
